import { Carousel as AntCarousel } from "antd-mobile"
import * as React from "react"
import "./index.scss"

interface CarouselProps {
  children: React.ReactNode
  autoplay?: boolean
}

export default function Carousel(props: CarouselProps) {
  const { children, autoplay } = props
  return (<AntCarousel autoplay={autoplay}>
    {children}
  </AntCarousel>)
}
